package com.tangding.log.impl;

import org.springframework.stereotype.Component;

import com.tangding.common.utils.JacksonUtil;
import com.tangding.log.LogMatcher;

/**
 * @description 
 *
 * @author Ranger
 * @version 2017年12月20日_下午12:17:10
 *
 */
@Component
public class PointRole2UserLog extends LogMatcher {
	
	@Override
	public String cmdDisplay(String cmd, Object... args) {
		Object[] as = (Object[])(args[0]);
		String roleName = JacksonUtil.get(as[0], "roles.selectItem.info", true);
		String userName = JacksonUtil.get(as[0], "users.selectItem.info", true);
		return "指定（" + userName + "）为【" + roleName + "】";
	}
}
